To connect or associate one thing with another. The new marketing campaign will tie in with the upcoming product launch.
To match or coordinate with something. The curtains tie in perfectly with the color scheme of the room.
To link or relate a story or event to another. The author managed to tie in the subplot with the main storyline seamlessly.